﻿/*
 * Created by SharpDevelop.
 * User: think
 * Date: 2012/11/6
 * Time: 16:13
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Data;

namespace TESTSD
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		public MainForm()
		{
			InitializeComponent();
		}
	
		
		void Button2Click(object sender, EventArgs e)
		{
			this.dataGridView1.DataSource = getTable();
		}
		
		public DataTable getTable()
		{
			EAS.Data.Access.DataAccessor acc = new EAS.Data.Access.DataAccessor();
			return acc.QueryDataTable("select * from IM.EMPLOYEE");
		}
	}
}
